<?xml version="1.0" encoding="UTF-8"?>
<!-- 
    Document   : BuscarVenda
    Created on : 05/02/2010, 13:14:12
    Author     : Las
-->
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ice="http://www.icesoft.com/icefaces/component" xmlns:jsp="http://java.sun.com/JSP/Page">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ice:outputHtml id="outputHtml1">
            <ice:outputHead id="outputHead1">
                <ice:outputStyle href="./resources/stylesheet.css" id="outputStyle1"/>
                <ice:outputStyle href="./xmlhttp/css/rime/rime.css" id="outputStyle2"/>
                <ice:outputStyle href="./resources/css/formata_conteudo.css" id="outputStyle3"/>
                <script language="JavaScript" src="./view/js/MascaraCampos.js" type="text/javascript"></script>
            </ice:outputHead>
            <ice:outputBody id="outputBody1" style="-rave-layout: grid">
                <ice:form id="form1">
                    <!-- Painel Principal -->
                    <ice:panelGroup id="painelPrincipal" styleClass="principal">
                        <!--  Painel Menu  -->
                        <ice:panelLayout id="panelLayoutMenu" style="width: 100%; top: 26%; left: 9.5%"/>
                        <!-- Painel Cabeçalho -->
                        <ice:panelLayout id="panelLayoutCabecalho" style=" -rave-layout: grid" styleClass="cabecalho">
                            <ice:commandButton action="#{BuscarVendedor2.panelLayoutLogo_action}" id="panelLayoutLogo"
                                image="/resources/images/logo_soligee.png" styleClass="logo"/>
                        </ice:panelLayout>
                        <!-- Painel Título -->
                        <ice:panelLayout id="painelTitulo" style="-rave-layout: grid" styleClass="titulo bvendedor">
                            <!-- Painel Voltar -->
                            <ice:panelLayout id="painelVoltar" style="height: 54px; right:10px; top: 5px; position: absolute; width: 54px">
                                <ice:commandButton action="#{BuscarVendedor2.btn_voltar_action}" binding="#{BuscarVendedor2.btn_voltar}" id="btn_voltar"
                                    image="/resources/images/btn/voltar.png" immediate="true" partialSubmit="true" styleClass="btnVoltar"/>
                            </ice:panelLayout>
                            <!-- Fim Painel Voltar -->
                        </ice:panelLayout>
                        <!-- Fim Painel Título -->
                        <!-- Painel Busca -->
                        <ice:panelLayout id="panelPainelBusca" style="-rave-layout: grid" styleClass="painelBusca">
                            <!-- Tipo da Busca -->
                            <ice:selectOneMenu binding="#{BuscarVendedor2.tipoBusca}" id="tipoBusca" partialSubmit="true" styleClass="tipoBusca"
                                value="#{BuscarVendedor2.botaoSelecionadoTipoBusca.selectedObject}" valueChangeListener="#{BuscarVendedor2.tipoBusca_processValueChange}">
                                <f:selectItems id="selectOneMenu1selectItems" value="#{BuscarVendedor2.botaoTipoBusca}"/>
                            </ice:selectOneMenu>
                            <!-- Campo Busca -->
                            <ice:selectInputText binding="#{BuscarVendedor2.campoABuscar}" id="campoABuscar" style="z-index:3" styleClass="campoABuscar"
                                valueChangeListener="#{BuscarVendedor2.campoABuscar_processValueChange}" width="240">
                                <f:selectItems id="selectInputText1selectedItems" value="#{BuscarVendedor2.item}"/>
                            </ice:selectInputText>
                            <!-- Botão Buscar -->
                            <ice:commandButton action="#{BuscarVendedor2.btn_buscar_action}" binding="#{BuscarVendedor2.btn_buscar}" id="btn_buscar"
                                immediate="true" styleClass="btnBuscar" value="Buscar"/>
                            <!-- Botão Alterar -->
                            <ice:commandButton action="#{BuscarVendedor2.btnAlterar_action}" binding="#{BuscarVendedor2.btnAlterar}" id="btnAlterar"
                                immediate="true" styleClass="btnAlterar" value="Alterar"/>
                            <!-- Botão Excluir -->
                            <ice:commandButton action="#{BuscarVendedor2.btnExcluir_action}" binding="#{BuscarVendedor2.btnExcluir}" id="btnExcluir"
                                styleClass="btnExcluir" value="Excluir"/>
                            <!--Botao ConfirmaAlteracao -->
                            <ice:commandButton action="#{BuscarVendedor2.btnConfirmaAlteracao_action}" binding="#{BuscarVendedor2.btnConfirmaAlteracao}"
                                id="btnConfirmaAlteracao" styleClass="btnAlterar" value="Confirma Alteração"/>
                        </ice:panelLayout>
                        <!-- Painel Corpo -->
                        <ice:panelLayout id="painelCorpo" styleClass="pnCorpo">
                            <!-- Painel Corpo Esquerda -->
                            <ice:panelLayout id="painelCorpoEsquerda" styleClass="pnCorpoEsquerda">
                                <!-- Tabela ResultadoBusca -->
                                <center>
                                    <ice:dataTable binding="#{BuscarVendedor2.tabelaResultadoBusca}" id="tabelaResultadoBusca" rows="10"
                                        value="#{BuscarVendedor2.dataTable1Model}" var="currentRow">
                                        <ice:column id="column1">
                                            <center>
                                                <ice:outputText id="outputText1" value="#{currentRow.codVendedor}"/>
                                            </center>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText2" value="Cód."/>
                                            </f:facet>
                                        </ice:column>
                                        <ice:column id="column2">
                                            <h:commandLink action="#{BuscarVendedor2.linkAction1_action}" id="linkAction1" immediate="true" value="#{currentRow.nome}"/>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText4" value="Nome"/>
                                            </f:facet>
                                        </ice:column>
                                        <ice:column id="column3">
                                            <center>
                                                <ice:outputText id="outputText5" value="#{currentRow.comissaoVendaVista}"/>
                                            </center>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText6" value="Comissão Vista"/>
                                            </f:facet>
                                        </ice:column>
                                        <ice:column id="column4">
                                            <center>
                                                <ice:outputText id="outputText7" value="#{currentRow.comissaoVendaPrazo}"/>
                                            </center>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText8" value="Comissão Prazo"/>
                                            </f:facet>
                                        </ice:column>
                                        <f:facet name="footer">
                                            <ice:panelGroup id="panelGroup1" style="display: block; text-align: center" styleClass="list-paging-footer">
                                                <ice:commandButton action="#{BuscarVendedor2.tabelaResultadoBusca_firstPageAction}"
                                                    binding="#{BuscarVendedor2.tabelaResultadoBuscaFooterFirstButton}"
                                                    id="tabelaResultadoBuscaFooterFirstButton" immediate="true" value="|&lt;"/>
                                                <ice:commandButton action="#{BuscarVendedor2.tabelaResultadoBusca_previousPageAction}"
                                                    binding="#{BuscarVendedor2.tabelaResultadoBuscaFooterPreviousButton}"
                                                    id="tabelaResultadoBuscaFooterPreviousButton" immediate="true" value="&lt;-"/>
                                                <ice:commandButton action="#{BuscarVendedor2.tabelaResultadoBusca_nextPageAction}"
                                                    binding="#{BuscarVendedor2.tabelaResultadoBuscaFooterNextButton}" id="tabelaResultadoBuscaFooterNextButton"
                                                    immediate="true" value="-&gt;"/>
                                                <ice:commandButton action="#{BuscarVendedor2.tabelaResultadoBusca_lastPageAction}"
                                                    binding="#{BuscarVendedor2.tabelaResultadoBuscaFooterLastButton}" id="tabelaResultadoBuscaFooterLastButton"
                                                    immediate="true" value="&gt;|"/>
                                            </ice:panelGroup>
                                        </f:facet>
                                    </ice:dataTable>
                                </center>
                            </ice:panelLayout>
                            <!-- Painel Corpo Direita -->
                            <ice:panelLayout id="painelCorpoDireita" layout="flow" styleClass="pnCorpoDireita">
                                <ice:panelTabSet id="painelAbasUsuario" partialSubmit="true" styleClass="pnTabSet" tabPlacement="Top">
                                    <ice:panelTab id="aba01" label="Vendedor">
                                        <ice:panelLayout id="conteudoAbaVendedor" layout="flow" styleClass="pnLayConteudo">
                                            <ice:panelLayout id="panelLayoutA1" layout="flow" styleClass="pnLayForm1 pBusca">
                                                <!--ID -->
                                                <ice:outputLabel id="tx_codigo" styleClass="rotulo" value="ID: "/>
                                                <ice:inputText binding="#{BuscarVendedor2.campoCodigo}" id="campoCodigo" partialSubmit="true" readonly="true"
                                                    styleClass="entradaTxt" title="Código do Vendedor."/>
                                                <!--Nome Completo -->
                                                <ice:outputLabel id="tx_nomeCompleto" styleClass="rotulo" value="Nome Completo (*): "/>
                                                <ice:inputText binding="#{BuscarVendedor2.campoNomeCompleto}" id="campoNomeCompleto" partialSubmit="true"
                                                    styleClass="entradaTxt" title="Insira o Nome Completo do Vendedor."/>
                                            </ice:panelLayout>
                                            <ice:panelLayout id="panelLayoutA2" layout="flow" styleClass="pnLayForm2 pBusca">
                                                <!--Comissao Prazo -->
                                                <ice:outputLabel id="tx_comissaoPrazo" styleClass="rotulo" value="Comissão à Prazo:"/>
                                                <ice:inputText binding="#{BuscarVendedor2.campoComissaoPrazo}" id="campoComissaoPrazo"
                                                    onkeypress="mascara(this,soNumeros);" partialSubmit="true" styleClass="entradaTxt" title="Insira o Valor da Comissão a Prazo."/>
                                                <!--Comissao Vista -->
                                                <ice:outputLabel id="tx_comissaoVista" styleClass="rotulo" value="Comissão à Vista: "/>
                                                <ice:inputText binding="#{BuscarVendedor2.campoComissaoVista}" id="campoComissaoVista"
                                                    onkeypress="mascara(this,soNumeros);" partialSubmit="true" styleClass="entradaTxt" title="Insira o Valor da Comissão à Vista."/>
                                            </ice:panelLayout>
                                            <!--Link Cancelar -->
                                            <ice:commandLink action="#{BuscarVendedor2.linkCancelar_action}" id="linkCancelar" immediate="true"
                                                partialSubmit="true" styleClass="cancelarBtn minix"/>
                                        </ice:panelLayout>
                                    </ice:panelTab>
                                </ice:panelTabSet>
                                <!-- Fim Painel Buscar Vendedor -->
                            </ice:panelLayout>
                            <!-- Fim Painel Corpo Direita -->
                            <!-- Painel Rodapé -->
                            <ice:panelLayout id="painelRodape" layout="flow" styleClass="boxRodape">
                                <ice:panelLayout id="painelRodapeEsq" styleClass="esqRodape"/>
                                <ice:panelLayout id="logoRodape" styleClass="logoRodape"/>
                                <ice:panelLayout id="painelRodapeDir" styleClass="dirRodape"/>
                            </ice:panelLayout>
                            <!-- Fim Painel Rodapé -->
                        </ice:panelLayout>
                        <!-- Fim - Painel Corpo -->
                        <ice:panelPopup autoCentre="true" binding="#{BuscarVendedor2.panelPopUpAviso}" draggable="true" id="panelPopUpAviso" modal="true"
                            rendered="#{BuscarVendedor2.panelPopup1Bean.showDraggablePanel}"
                            styleClass="jpopup" visible="#{BuscarVendedor2.panelPopup1Bean.showModalPanel}">
                            <f:facet name="header">
                                <ice:panelGrid id="panelGrid1" style="display:block;width:180px;height:20px;">
                                    <ice:outputText id="outputText3" value="Atenção"/>
                                </ice:panelGrid>
                            </f:facet>
                            <f:facet name="body">
                                <ice:panelGroup id="panelPopBody" styleClass="jpopBody">
                                    <ice:panelLayout id="panelPopTxt" styleClass="jpopTxt">
                                        <ice:outputText binding="#{BuscarVendedor2.textoPopUp}" id="textoPopUp" value="body text"/>
                                    </ice:panelLayout>
                                    <ice:panelLayout id="panelPopBtn" styleClass="jpopBtn">
                                        <ice:commandButton action="#{BuscarVendedor2.btnPopUp1_action}" binding="#{BuscarVendedor2.btnPopUp1}" id="btnPopUp1" value="submit"/>
                                        <ice:commandButton action="#{BuscarVendedor2.btnPopUp2_action}" binding="#{BuscarVendedor2.btnPopUp2}" id="btnPopUp2" value="submit"/>
                                    </ice:panelLayout>
                                </ice:panelGroup>
                            </f:facet>
                        </ice:panelPopup>
                    </ice:panelGroup>
                    <!-- Fim - Painel Principal -->
                </ice:form>
            </ice:outputBody>
        </ice:outputHtml>
    </f:view>
</jsp:root>
